<style>
    .com-dialog-toast.showing {
        display: block;
        opacity: 1;
        z-index: 10000;
    }

    .com-dialog-toast {
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        position: fixed;
        display: none;
        opacity: 0;
        background: rgba(0, 0, 0, .8);
        z-index: 1000;
        padding: 10px 20px;
        border-radius: 10px;
        text-align: center;
        color: #fff;
        max-width: 200px;
        font-size: 16px;
        font-family: "Hiragino Sans GB", "Hiragino Sans GB W3", "Helvetica Neue", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    }
    .com-dialog-toast, .com-dialog-toast p {
        line-height: 1;
    }
    /* .show, img {
        display: block;
    } */
    .com-dialog-toast.hiding {
        display: none;
        opacity: 0;
        -webkit-animation: ani-opa-hiding-keyframe 2s;
        animation: ani-opa-hiding-keyframe 2s;
    }

    .base_ground {background: {$config['formcolortop']} !important;}

</style>
<div id="tipsdiv" class="com-dialog com-dialog-toast showing hiding">
    <div class="toast" id="tipstext"></div>
</div>
<script>
    function doing(content){
        $("#tipstext").text(content);
        $("#tipsdiv").removeClass("hiding");
    }

    function end(){
        $("#tipsdiv").addClass("hiding");
    }


    function tips(content){
        $("#tipstext").text(content);
        $("#tipsdiv").removeClass("hiding");
        setTimeout('$("#tipsdiv").addClass("hiding")', 2500);
    }

    function tips2(info,url) {
        tips(info);
        setTimeout("window.location.href='" + url + "'", 2500);
    }
</script>

<!--弹出登录注册-->
<div class="base_tcdiv_mobile" style="display: none;;"></div>
<div class="chips_tanchu content" style="display: none;;">
    <div class="layout-title content">
        <div class="detail">
            <p class="m_titles">
                {if empty($workername)}
                {$theme['title']}
                {else}
                <a href="tel://{$workermobile}" style="color: #282828">客服:{$workername}/{$workermobile}</a>
                {/if}
            </p>
        </div>
        <div class="sku-layout">
            <div class="cancel-img"></div>
        </div>
    </div>
    <div class="content s_bottom">
        <!-- <p>请输入姓名电话参加活动!</p> -->
        <ul class="content b_input">
            {if $config['shopstype'] == 0 }
            {if !empty($config['shops'])}
            <li>
                <span class="base_ground">{$config['shops']}：</span>
                {if !empty($config['options'])}
                <select id="shoptitle" name="shoptitle" style="    float: left;
                        outline: none;
                        background: #ddd;
                        border: none;
                        padding: 0;
                        height: 40px;
                        line-height: 40px;
                        width: 70%;
                        text-indent: 5px;">
                    <option value="">请选择{$config['shops']}</option>
                    {loop $config['options'] $row}
                    <option value="{$row}" {if $row==$themyrecord['option']}selected="selected"{/if}>{$row}</option>
                    {/loop}
                </select>
                {/if}
            </li>
            {else}
            <input  type="hidden" name="shoptitle" value="默认" id="shoptitle">
            {/if}
            {/if}


            <li>
                <span class="base_ground">{$config['nametext']}：</span>
                <input placeholder="请输入{$config['nametext']}" type="text" name="regname_order" value="{$_G['member']['username']}" id="regname_order">
            </li>
            <li>
                <span class="base_ground">{$config['mobiletext']}：</span>
                <input placeholder="请输入{$config['mobiletext']}" type="tel" name="username_order" value="{$_G['member']['mobile']}" id="username_order">
                <input value="0" type="hidden" name="joininfoid" id="joininfoid">
            </li>

            <li {if empty($config['address'])}style="display: none;"{/if}>
            <span class="base_ground">{$config['address']}：</span>
            <input placeholder="{$config['address']}必填" type="text" name="address_order" value="{$member['address']}" id="address_order">
            </li>

            {if $config['shopstype'] > 0 }
            <li {if empty($config['shops'])}style="display: none;"{/if}>
            <span class="base_ground">{$config['shops']}：</span>
            <input placeholder="{$config['shops']}必填" type="{php echo $config['shopstype']==2?'tel':'text';}" name="shoptitle" value="{$member['option']}" id="shoptitle">
            </li>
            {/if}
            {if $config['datetimetype'] > 0 }
            <li {if empty($config['datetime'])}style="display: none;"{/if}>
            <span class="base_ground">{$config['datetime']}：</span>
            <input placeholder="{$config['datetime']}必填" type="{php echo $config['datetimetype']==2?'tel':'text';}" name="datetime_order" value="{$member['datetime']}" id="datetime_order">
            </li>
            {else}
            <li {if empty($config['datetime'])}style="display: none;"{/if}>
            <span class="base_ground" >{$config['datetime']}：</span>
            <input class="weui-input" placeholder="{$config['datetime']}" type="text" onfocus="(this.type='date')" value="{$member['datetime']}" name="datetime_order" id="datetime_order"/>
            </li>
            {/if}
            {if $config['addinfotype'] > 0 }
            <li {if empty($config['addinfo'])}style="display: none;"{/if}>
            <span class="base_ground">{$config['addinfo']}：</span>
            <input placeholder="{$config['addinfo']}必填" type="{php echo $config['addinfotype']==2?'tel':'text';}" name="addinfo_order" value="{$member['addinfo']}" id="addinfo_order">
            </li>
            {else}
            <li {if empty($config['addinfo'])}style="display: none;"{/if}>
            <span class="base_ground" >{$config['addinfo']}：</span>
            <input class="weui-input" placeholder="{$config['addinfo']}" type="text" onfocus="(this.type='date')" value="{$member['addinfo']}" name="addinfo_order" id="addinfo_order"/>
            </li>
            {/if}
            <li style=" width: 100%;float: left; height: 20px; padding-left: 0px; color: #000; {if empty($config['xieyi'])}display: none;{/if}">
                <input style="    float: left;outline: none;border: none; padding: 0;
    height: 20px;    line-height: 20px;width: 10%; text-indent: 5px;" placeholder="{$config['xieyi']}必填" type="checkbox" name="xieyi" value="{$member['xieyi']}" id="xieyi_order">
                <label>{$config['xieyi']}</label>
            </li>

        </ul>
    </div>
</div>
<div class="chips_tanchu_bottom chips_tanchu_bottom2" style="display: none;">
    <a style="width: 95%;" class="base_ground" href="javascript:;" onclick="domakeloginshare()">确认信息</a>
</div>
<input type="hidden" id="tijiao" value="0">
<input type="hidden" id="check_type" name="check_type" value="3">

<!-- <div class="chips_tanchu_bottom" style="display:none;">
    <a class="base_ground" href="javascript:;" id="topay">立即支付</a>
</div> -->

<script type="text/javascript">


    function show_group(){
        $(".base_tcdiv_mobile1").show();
        $(".my_grounp").show();
    }

    function close_group(){
        $(".base_tcdiv_mobile1").hide();
        $(".my_grounp").hide();
    }

    /*底部弹出支持*/
    var chips_tanchu = $(".chips_tanchu");

    $(".base_tcdiv_mobile,.cancel-img").click(function(){
        if (chips_tanchu.is(':hidden')) {
            $(".chips_tanchu").slideDown(500);
            $(".chips_tanchu_bottom").show();
            $(".base_tcdiv_mobile").show();
        }
        else {
            $(".chips_tanchu").slideUp(500);
            $(".chips_tanchu_bottom").hide();
            $(".base_tcdiv_mobile").hide();
        };
    });

    function showlogin(joinid){
        close_group();
        $("#joininfoid").val(joinid);
        $(".chips_tanchu").slideDown(500);
        $(".chips_tanchu_bottom").show();
        $(".base_tcdiv_mobile").show();
    }
    function showloginfree(joinid){
        close_group();
        $("#joininfoid").val(joinid);
        $(".chips_tanchu").slideDown(500);
        $(".chips_tanchu_bottom").hide();
        $(".chips_tanchu_bottom2").show();
        $(".base_tcdiv_mobile").show();
    }

</script>